package ui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.internal.win32.OS;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.wb.swt.SWTResourceManager;

public class LrcView extends NO_TRIM_MOVABLE_SHELL{

	private Label Text;
	public LrcView(Shell parent, int style) {
		super(parent, SWT.NO_TRIM);
		setBounds(0, 800, 1920, 150);
		setBackground(new Color(getDisplay(), 20, 20, 20));
		setBackgroundMode(SWT.INHERIT_DEFAULT);
		
		Text = new Label(this, SWT.SHADOW_NONE | SWT.CENTER);
		Text.setFont(SWTResourceManager.getFont("Microsoft YaHei UI", 30, SWT.NORMAL));
		Text.setSize(getSize());
		Text.setForeground(ui.global.UIColor.DARK);
		Text.setText("丘丘音乐，让生活充满音乐");
		Text.addMouseMoveListener(this);
		Text.addMouseListener(this);
		ui.global.GraphicsUtil.transparent(handle, 0x141414, -1);
		OS.SetWindowPos(handle, -1, 0, 0, 0, 0, 3);
	}
	
	
	public void setLrc(String string) {
		if(string != null) {
			Text.setText(string);
		}
	}
	
	public String getLrc() {
		return Text.getText();
	}
	


}
